package com.wyr.common.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 操作日志记录
 * </p>
 *
 * @author wangyiren
 * @since 2023-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "操作日志记录")
public class LogVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private String id;

    @Schema(description = "模块标题")
    private String title;

    @Schema(description = "方法名称")
    private String method;

    @Schema(description = "请求方式")
    private String requestMethod;

    @Schema(description = "操作类别（0 其它 1 后台用户 2 移动端用户）")
    private String operatorType;

    @Schema(description = "操作人员")
    private String username;

    @Schema(description = "请求URL")
    private String url;

    @Schema(description = "主机地址")
    private String ip;

    @Schema(description = "操作地点")
    private String location;

    @Schema(description = "请求参数")
    private String param;

    @Schema(description = "返回参数")
    private String jsonResult;

    @Schema(description = "操作状态（0正常 1异常）")
    private String status;

    @Schema(description = "错误消息")
    private String errorMsg;

    @Schema(description = "执行时间(ms)")
    private Long executionTime;

    @Schema(description = "浏览器")
    private String browser;

    @Schema(description = "浏览器版本")
    private String browserVersion;

    @Schema(description = "终端系统")
    private String os;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "有效状态，0:无效 1:有效")
    private Integer valid;

}
